package com.hkts.beltweigher.master.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hml
 * @since 2024-04-10
 */
public class MatchsAllocation extends Model<MatchsAllocation> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;
    /**
     * 总流量
     */
    private String totalRate;
    /**
     * 材料名称
     */
    private String material;
    /**
     * 设定比例
     */
    private String setRatio;
    /**
     * 设定流量
     */
    private String setTraffic;
    /**
     * 类型
     */
    private Integer iType;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTotalRate() {
        return totalRate;
    }

    public void setTotalRate(String totalRate) {
        this.totalRate = totalRate;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getSetRatio() {
        return setRatio;
    }

    public void setSetRatio(String setRatio) {
        this.setRatio = setRatio;
    }

    public String getSetTraffic() {
        return setTraffic;
    }

    public void setSetTraffic(String setTraffic) {
        this.setTraffic = setTraffic;
    }

    public Integer getiType() {
        return iType;
    }

    public void setiType(Integer iType) {
        this.iType = iType;
    }

    public static final String ID = "id";

    public static final String TOTAL_RATE = "total_rate";

    public static final String MATERIAL = "material";

    public static final String SET_RATIO = "set_ratio";

    public static final String SET_TRAFFIC = "set_traffic";

    public static final String I_TYPE = "i_type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MatchsAllocation{" +
                ", id=" + id +
                ", totalRate=" + totalRate +
                ", material=" + material +
                ", setRatio=" + setRatio +
                ", setTraffic=" + setTraffic +
                ", iType=" + iType +
                "}";
    }
}
